package com.alks.entity.data.enums.chengkong;

import lombok.Getter;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Getter
public enum NoteEnum {

    DECISION("1","裁断注意事项"),
    HIGH_FREQUENCY("2","高频注意事项"),
    SEWING_MACHINE("3","针车注意事项"),
    GREAT_SOLES("4","大底注意事项"),
    FORMING("5","成型注意事项");

    //序号
    private String seqNo;
    //事项名称
    private String seqName;

    NoteEnum(String seqNo,String seqName){
        this.seqNo=seqNo;
        this.seqName=seqName;
    }

    //注意事项列表
    public static List<Map<String,String>> noteList(){
        List<Map<String,String>> noteList=new ArrayList<>();
        for (NoteEnum value : NoteEnum.values()) {
            Map<String,String> note=new HashMap<>();
            note.put("seqNo",value.getSeqNo());
            note.put("seqName",value.getSeqName());
            noteList.add(note);
        }
        return noteList;
    }
}
